import  fetch from 'isomorphic-fetch'
export  const SELECT_PHOTO = 'SELECT_PHOTO'
export  const CLICK_PHOTO = 'CLICK_PHOTO'

export  function onImageClick(oldImage, newImageNum, images) {
    return {
        type: SELECT_PHOTO,
        oldImage,
        newImageNum,
        images
    }
}
export function onCenterImageClick(){
    return {
        type: CLICK_PHOTO,
    }
}